var $$ = function(value) {return document.getElementById(value);}
var bstartnextplay=false;
document.writeln("<Script type=\"text\/javascript\" src=\"http:\/\/adncms.cn\/Js\/Qvod.js\"><\/script>");
function $ShowPlayer(width,height){
	document.write('<object id="QvodPlayer" name="QvodPlayer" width="'+width+'" height="'+height+'" classid="clsid:F3D0D36F-23F8-4682-A195-74C92B03D4AF" onError="$ShowAd()">');
	document.write('<PARAM NAME="URL" VALUE="'+url+'">');
	document.write('<PARAM NAME="Autoplay" VALUE="1">');
	document.write('<PARAM NAME="QvodAdUrl" VALUE="http://adncms.cn/Js/qvod.html">');
	if(adnnextpage != "no"){
	document.write('<PARAM NAME="NextWebPage" VALUE="'+adnnextpage+'">');	
	}
	document.write('</object>');
	setInterval('$ShowSwf()','500');
	setInterval('$ShowSwf2()','9333');
}
function $ShowSwf(){
	if(QvodPlayer.Full==0){
		if(QvodPlayer.PlayState==3){
		    $$('QvodPlayer').style.height = 460;
		    $$('playad').style.display='none';
		}else{
			$$('QvodPlayer').style.height = 59;
			$$('playad').style.display='inline';
		}
	}
}
function $ShowSwf2(){
	if(adnnextpage != "no"){
		if(QvodPlayer.get_CurTaskProcess() > 600 && !bstartnextplay){
			QvodPlayer.StartNextDown(adnnexturl);
			bstartnextplay = true;
		}
	}
}